/**
 * 根据给定的n，输出乘法口诀表的前n行。
 */

#include <iostream>
#include <iomanip>

using namespace std;

int main_0033(void)
{
    long long n;
    cin >> n;

    for(int i = 1; i <= n; ++i) {
        for (int j = 1; j <= i; ++j) {
            cout << j << "*" << i << "=" << i *j << " ";
        }
        cout << endl;
    }

    return 0;
}
